package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class DownloadEventBase{
	boolean[] modified=new boolean[6];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public DownloadEventBase(){}
	public DownloadEventBase(java.lang.Long eventId,java.lang.Long downloaderId,java.lang.Long uploadId,java.util.Date downloadTime,java.lang.Boolean succeed,java.lang.Long costSeconds){
		setEventId(eventId);
		setDownloaderId(downloaderId);
		setUploadId(uploadId);
		setDownloadTime(downloadTime);
		setSucceed(succeed);
		setCostSeconds(costSeconds);
	}
	public void setEventId(java.lang.Long eventId){
		if(eventId!=null) {
			set("eventId",eventId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getEventId(){
		return (java.lang.Long)get("eventId");
	}
	public void setDownloaderId(java.lang.Long downloaderId){
		if(downloaderId!=null) {
			set("downloaderId",downloaderId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getDownloaderId(){
		return (java.lang.Long)get("downloaderId");
	}
	public void setUploadId(java.lang.Long uploadId){
		if(uploadId!=null) {
			set("uploadId",uploadId);
			this.modified[2] =true;
		}
	}
	public java.lang.Long getUploadId(){
		return (java.lang.Long)get("uploadId");
	}
	public void setDownloadTime(java.util.Date downloadTime){
		if(downloadTime!=null) {
			set("downloadTime",downloadTime);
			this.modified[3] =true;
		}
	}
	public java.util.Date getDownloadTime(){
		return (java.util.Date)get("downloadTime");
	}
	public void setSucceed(java.lang.Boolean succeed){
		if(succeed!=null) {
			set("succeed",succeed);
			this.modified[4] =true;
		}
	}
	public java.lang.Boolean getSucceed(){
		return (java.lang.Boolean)get("succeed");
	}
	public void setCostSeconds(java.lang.Long costSeconds){
		if(costSeconds!=null) {
			set("costSeconds",costSeconds);
			this.modified[5] =true;
		}
	}
	public java.lang.Long getCostSeconds(){
		return (java.lang.Long)get("costSeconds");
	}
}
